﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;

namespace BookStore.Bussiness
{
    public class customerService
    {
        #region getbyID
        public static customerInfo getbyID(int customerID) {
            return customerController.getbyID(customerID);
        }
        #endregion

        #region getAll
        public static DataTable getAll() {
            return customerController.ListCustomer();
        }
        #endregion

        #region insert
        public static bool insertCustomer(customerInfo objCustomer) {
            return customerController.insertCustomer(objCustomer);
        }
        #endregion

        #region update
        public static bool updateCustomer(customerInfo objCustomer) {
            return customerController.updateCustomer(objCustomer);
        }
        #endregion

        #region delete

      

        public static bool deleteCustomer(int customerID)
        {

            return customerController.deleteCustomer(customerID);
        }
        #endregion
        
        customerController cs = new customerController();
        public bool CheckUser_customer(customerInfo cus) 
        {
            return cs.CheckUser_customer(cus);
        }
        public bool CheckUser() {
            return cs.CheckUser();
        }
    }
}
